#define _CRT_SECURE_NO_WARNINGS 1

#include"String.h"

int main()
{
	zy::String s1;
	//cin >> s1;
	getline(cin, s1);
	cout << s1 << endl;

	/*zy::String s1("hello world");
	zy::String s2 = s1.substr(1);
	cout << (s1 == s2) << endl;
	cout << (s1 != s2) << endl;
	cout << (s1 > s2) << endl;
	cout << (s1 >= s2) << endl;
	cout << (s1 < s2) << endl;
	cout << (s1 <= s2) << endl;*/

	/*zy::String s1("hello world");
	size_t pos1 = s1.find("wo");
	size_t pos2 = s1.find("xxx");
	cout << pos2 << endl;*/

	/*zy::String s1("hello world");
	zy::String s2(s1);
	s1 += 'a';
	s1 += "xxxx";
	cout << s1.c_str() << endl;
	cout << s2.c_str() << endl;
	
	swap(s1, s2);
	cout << s1.c_str() << endl;
	cout << s2.c_str() << endl;*/

	/*zy::String s1("hello world");
	zy::String s2(s1);
	cout << s2.c_str() << endl;

	zy::String s3("hello");
	s2 = s3;
	cout << s2.c_str() << endl;*/

	/*zy::String s1("hello world");
	cout << s1.c_str() << endl;
	cout << s1.size() << "-" << s1.capacity() << endl;

	s1.resize(8);
	cout << s1.c_str() << endl;
	cout << s1.size() << "-" << s1.capacity() << endl;

	s1.resize(10, 'a');
	cout << s1.c_str() << endl;
	cout << s1.size() << "-" << s1.capacity() << endl;

	s1.resize(20, 'b');
	cout << s1.c_str() << endl;
	cout << s1.size() << "-" << s1.capacity() << endl;*/



	/*zy::String s1("hello world");
	s1.erase(9, -1);
	cout << s1.c_str() << endl;

	s1.erase(7, 3);
	cout << s1.c_str() << endl;

	s1.erase(1, 2);
	cout << s1.c_str() << endl;*/



	/*zy::String s1("xx");
	s1.insert(2, "ssss");
	cout << s1.c_str() << endl;

	s1.insert(1, "aaa");
	cout << s1.c_str() << endl;

	s1.insert(0, "qq");
	cout << s1.c_str() << endl;*/


	/*zy::String s1("xx");
	s1.insert(1, 'i');
	cout << s1.c_str() << endl;

	s1.insert(s1.size(), 'j');
	cout << s1.c_str() << endl;

	s1.insert(0, 'k');
	cout << s1.c_str() << endl;*/


	/*zy::String s1;
	s1.push_back('1');
	s1.push_back('1');
	s1.push_back('1');
	cout << s1.c_str() << endl;

	s1.append("xixi");
	cout << s1.c_str() << endl;

	s1 += 's';
	s1 += "aaaaa";
	cout << s1.c_str() << endl;*/

	/*const zy::String s("xixi");
	for (int i = 0; i < s.size(); i++)
	{ 
		cout << s[i] << endl;
	}*/



	/*zy::String s1;
	zy::String s2("xixi");

	for (int i = 0; i < s2.size(); i++)
	{
		cout << s2[i] << endl;
	}*/

	

	return 0;
}

